package com.umgsai.thread.thread06;

public class Main {
	synchronized public void serviceMethod(){
		try {
			System.out.println("Main, ThreadName=" + Thread.currentThread().getName() + ",sleep begin time=" + System.currentTimeMillis());
			Thread.sleep(1000);
			System.out.println("Main, ThreadName=" + Thread.currentThread().getName() + ",sleep end time=" + System.currentTimeMillis());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
